<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');

/**
 * 스타 검색 컨트롤러
 */
class Star extends CI_Controller {
	
	var $data = array();
	
	function __construct() {
		parent::__construct();
		
		$this->data['sess_userinfo'] = $this->session->userdata('userinfo');
		
		$this->load->model('unse/star_model', 'star', TRUE);
	}

	/*******************************************************************
	 * 스타 검색 폼
	 *******************************************************************/
	function search() {
		log_message('debug', "@@@@ Star::search()");

		$search_keyword = $this->input->post('search_keyword', TRUE);
		if (!empty($search_keyword)) {
			$this->data['search_keyword'] = $search_keyword;
			$this->load->model('unse/Star_model', 'star');
			$this->data['artist_list'] = $this->star->select_artist_search_list($search_keyword);
		} else {
			$this->data['search_keyword'] = '';
		}
		
		$this->load->view('unse/star_search_pop_v', $this->data);
	}
}

/* End of file star.php */
/* Location: ./application/controllers/star.php */